<!--[if lt IE 9]>
<script src="js/library/html5shiv.js"></script>
<script src="js/library/respond.js"></script>
<script src="js/library/es5-shim.min.js"></script>
<script src="js/library/es5-sham.min.js"></script>
<script src="js/library/json3.js"></script>
<![endif]-->
<!-- Insert this line above script imports  -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="../../js/library/Class.js"></script>	
<script src="../../js/library/jquery.min.js"></script>
<script src="../../js/library/lhave.js"></script>
<script src="../../js/library/jquery_plugins/layer/layer.js"></script>
<script src="../../js/library/jquery_plugins/jquery_validform.js"></script>
<script>
	
	var ajaxHttpUrl = 'http://lujun.demo.haidao.la/';//全局http请求地址
	var commonUtils ={
			loadDatas: function(url,val,callBack){
				parent.layer.closeAll();
				layer.closeAll();
				layer.load(1, {
							shade: [0.1, '#fff'], //0.1透明度的白色背景
						});
				$.ajax({
					url: ajaxHttpUrl + url,
					type: 'POST',
					async: false,
					data: val
					
				}).done(function(res){
					parent.layer.closeAll();
					layer.closeAll();
					if(res.code == 1){
						callBack(res)
					}else{
						parent.layer.closeAll();
						layer.closeAll();
						layer.msg('加载错误！');
					}
						
					
				}).fail(function(){
					parent.layer.closeAll();
					layer.closeAll();
					layer.msg('网络错误！');
				});
				
				
			},
		/**
 * 查询地址中特定的参数
 * @param {String} fieldName 要查询的字段
 * @param {String} str 需要搜索的链接字符串
 */
		getStringParam: function (fieldName, str) {
            var rs = new RegExp("(^|)" + fieldName + "=([^&]*)(&|$)", "gi").exec(str),
                tmp;
            if (tmp = rs) return tmp[2];
            return "";
		}
		
		
		
		
	}	

</script>


<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>	